/*
 * ShopContract.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.shop;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.interfaces.RefreshListener;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

/** 首页-商铺-契约类 */
public class ShopContract {

    public interface Presenter extends BasePresenter {

        /**
         * 加载店铺列表
         *
         * @param isRefreshing 是否是下拉刷新
         */
        void loadShopList(boolean isRefreshing);
    }

    public interface View
            extends BaseView<Presenter>,
            RefreshLayoutStateListener,
            RefreshListener,
            LoadMoreListener {

        void setDisplayListItems(List<DisplayListItem> displayListItems);

        void smoothToTop();
    }
}
